﻿using System;
using System.Collections.Generic;

namespace Vosc.Coff
{
	// Token: 0x02000011 RID: 17
	public class Coffile
	{
		// Token: 0x1700000B RID: 11
		// (get) Token: 0x0600006C RID: 108 RVA: 0x00008714 File Offset: 0x00006914
		public uint EntryPoint
		{
			get
			{
				return this.entryPoint;
			}
		}

		// Token: 0x1700000C RID: 12
		// (get) Token: 0x0600006D RID: 109 RVA: 0x0000871C File Offset: 0x0000691C
		public List<CoffSection> Sections
		{
			get
			{
				return this.sections;
			}
		}

		// Token: 0x0600006E RID: 110 RVA: 0x00008724 File Offset: 0x00006924
		public Coffile(uint entryPoint)
		{
			this.entryPoint = entryPoint;
			this.sections = new List<CoffSection>();
		}

		// Token: 0x0600006F RID: 111 RVA: 0x0000873E File Offset: 0x0000693E
		public void AddSection(CoffSection sec)
		{
			this.sections.Add(sec);
		}

		// Token: 0x06000070 RID: 112 RVA: 0x0000874C File Offset: 0x0000694C
		public int GetBlockCount(int blockWordSize)
		{
			int num = 0;
			foreach (CoffSection coffSection in this.sections)
			{
				num += coffSection.GetBlockCount(blockWordSize);
			}
			return num;
		}

		// Token: 0x040000A1 RID: 161
		private uint entryPoint;

		// Token: 0x040000A2 RID: 162
		private List<CoffSection> sections;
	}
}
